package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_activity_video"
    ,catalog="zutuan_prot"
)
public class JujuActivityVideo  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuActivityVideo";
	public static final String TABLE_NAME="juju_activity_video";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_activityid = "activityid"; 
	public static final String P_videopath = "videopath"; 
	public static final String P_createer = "createer"; 
	public static final String P_createdatetime = "createdatetime"; 
	public static final String P_videoname = "videoname"; 
	public static final String P_deleflag = "deleflag"; 
	public static final String P_organid = "organid"; 
	public static final String P_players = "players"; 

     private String id;
     private String activityid;
     private String videopath;
     private String createer;
     private Date createdatetime;
     private String videoname;
     private Integer deleflag;
     private String organid;
     private Integer players;

    public JujuActivityVideo() {
    }
	
    public JujuActivityVideo(String id) {
        this.id = id;
    }
    public JujuActivityVideo(String id, String activityid, String videopath, String createer, Date createdatetime, String videoname, Integer deleflag, String organid, Integer players) {
        this.id = id;
        this.activityid = activityid;
        this.videopath = videopath;
        this.createer = createer;
        this.createdatetime = createdatetime;
        this.videoname = videoname;
        this.deleflag = deleflag;
        this.organid = organid;
        this.players = players;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="ACTIVITYID", length=36)
    public String getActivityid() {
        return this.activityid;
    }
    
    public void setActivityid(String activityid) {
        this.activityid = activityid;
    }
    
    @Column(name="VIDEOPATH", length=10000)
    public String getVideopath() {
        return this.videopath;
    }
    
    public void setVideopath(String videopath) {
        this.videopath = videopath;
    }
    
    @Column(name="CREATEER", length=36)
    public String getCreateer() {
        return this.createer;
    }
    
    public void setCreateer(String createer) {
        this.createer = createer;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATEDATETIME", length=19)
    public Date getCreatedatetime() {
        return this.createdatetime;
    }
    
    public void setCreatedatetime(Date createdatetime) {
        this.createdatetime = createdatetime;
    }
    
    @Column(name="VIDEONAME", length=36)
    public String getVideoname() {
        return this.videoname;
    }
    
    public void setVideoname(String videoname) {
        this.videoname = videoname;
    }
    
    @Column(name="DELEFLAG")
    public Integer getDeleflag() {
        return this.deleflag;
    }
    
    public void setDeleflag(Integer deleflag) {
        this.deleflag = deleflag;
    }
    
    @Column(name="organid", length=36)
    public String getOrganid() {
        return this.organid;
    }
    
    public void setOrganid(String organid) {
        this.organid = organid;
    }
    
    @Column(name="players")
    public Integer getPlayers() {
        return this.players;
    }
    
    public void setPlayers(Integer players) {
        this.players = players;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


